

const state={
    count:1
}
const actions={
    // this.$store.dispatch 触发mutations中相应的方法-一般小写
    /*add({commit},data){
        commit("ADD",data)
    }*/
}
const mutations={
    ADD(state,n){
        state.count += n;
    }
}
const getters={}

export default {
    namespaced:true,
    state,
    actions,
    mutations,
    getters
}